<div id="sidebar">
    <% if params["action"] == 'show' %>
        <h2>Resources</h2>
        <ul>
            <li><%= link_to 'iSpecies', "http://darwin.zoology.gla.ac.uk/~rpage/ispecies/?q=#{@plant.genus + "+" + @plant.specific_epithet}&submit=Go" -%></li>
            <li><%= link_to 'Request trait addition', "http://code.plantae.info/tickets/new" -%></li>
            <li><%= link_to 'Suggest a resource', "http://code.plantae.info/tickets/new" -%></li>
        </ul>
    <% else %>
        <h2>Recent activity</h2>
        <% new_plants.each do |plant| %>
        <%= link_to "#{plant.genus + " " + plant.specific_epithet}",
                        :action => "show", :id => plant.id %>
        <br />
        <% end %>
    <% end %>
</div>